package com.example.cloud.lijianribbon.configuration;

import com.netflix.client.config.IClientConfig;
import com.netflix.loadbalancer.IPing;
import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.PingUrl;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author lj02
 * @desc
 * @date 2018/6/14
 */
@Configuration
@ExcludeScanClass
public class FooConfiguration {
    @Bean
    public IRule ribbonRule() { // 自定义为随机规则
        return new RandomRule();
    }
}
